//
//  UIViewController+GNUtil.h
//  MarketEleven
//
//  Created by Bergren Lam on 8/7/14.
//  Copyright (c) 2014 Meinekechina. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, LKEmptyType) {
    LKEmptyTypeForLoding = 0,// 正在加载
    LKEmptyTypeForNoData,//加载成功，没数据
    LKEmptyTypeForFailure,//请求失败
    LKEmptyTypeForSuccess,//请求成功
    LKEmptyTypeForMathNotBegain,//比赛未开始
};

@interface UIViewController (GNUtil)

/** 空白页类型 */
@property (nonatomic, assign) LKEmptyType emptyType;
/** 空白页自定义文本（在没有请求到数据状态下才有用，CJSEmptyTypeForNoData） */
@property (nonatomic, copy) NSString *emptyCustomTitle;
/** 空白页自定义图片（在没有请求到数据状态下才有用，CJSEmptyTypeForNoData） */
@property (nonatomic, copy) NSString *emptyCustomImg;

/** 点击空白页 */
- (void) emptyDidSelected:(UIScrollView *)scrollView;


+ (UIViewController *)viewControllerWithStoryboard:(NSString *)storyboard identifier:(NSString *)identify;
+ (UIViewController *)currentViewController;
@end
